home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Serious Demos / Symbolic Composer 4.2 / Environment / System / MRAC / Toolbox / Misc / duration-tuning < prev    next >
Encoding:
Text File  |  1998-10-24  |  1.0 KB  |  44 lines  |  [TEXT/ScoM]

  1. duration-tuning length
  2.  
  3. Use with microtonality (def-tuning). You have to use non-overlapping or non maximum length durations otherwise the last one of the two contacting notes is removed and you don't hear it. Duration-tuning function decrease each length value by10 ticks.
  4.  
  5. (duration-tuning '(1/8 1/16 -1/6 -1/4 1/2))
  6. => (230 110 330 490 950)
  7.  
  8. (duration-tuning '((1/8 1/16 -1/6 -1/4 1/2) (-1/8 1/16 1/6 -1/4 1/2)))
  9. => ((230 110 330 490 950) (250 110 310 490 950))
  10.  
  11.  
  12. Score Example:
  13.  
  14. (def-tempo 64)
  15.  
  16. (def-length
  17.    violin '(1/2 1/2 1/2 1/2 1/2 1/2 1/2 1/2))
  18.  
  19. (def-zone
  20.    violin (make-zone (length-of violin)))
  21.  
  22. (def-symbol
  23.    violin '(a b b d c d d e))
  24.  
  25. (def-velocity
  26.    violin '(60 30 50 20 20 10 10 20 6))
  27.  
  28. (def-channel
  29.   violin k2000i-1)
  30.  
  31. (def-program k2000p
  32.   violin '(slow-solo-strings))
  33.  
  34. (def-controller k2000c
  35.   (violin pan '((30)) volume '((127))))
  36.  
  37. (def-duration
  38.    violin (duration-tuning (length-of violin)))
  39.  
  40. (def-tuning
  41.    violin '(0 -2048 0 2048 0 0 2048 0 0))
  42.  
  43. (compile-instrument-p "ccl;output:" "violin"
  44.    violin)